/*
*/

package net.sf.odinms.net.login.handler;

import net.sf.odinms.client.MapleCharacter;
import net.sf.odinms.client.MapleClient;
import net.sf.odinms.net.MaplePacketHandler;
import net.sf.odinms.net.login.LoginWorker;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
import net.sf.odinms.tools.DateUtil;
import java.util.Calendar;
import net.sf.odinms.net.login.LoginServer;

public class LoginStartHandler implements MaplePacketHandler {

private org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoginStartHandler.class);

    @Override
    public boolean validateState(MapleClient c) {
        return !c.isLoggedIn();
    }

    @Override
    public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
        log.info("发现连接:");
            c.getSession().write(MaplePacketCreator.getHelloto());
           
    }
}